package cn.ycms.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class dateUtils {
	private static SimpleDateFormat dateFormat = new SimpleDateFormat(
			"yyyy-MM-dd");

	private static SimpleDateFormat dateTimeFormat = new SimpleDateFormat(
			"yyyy-MM-dd HH:mm:ss");

	private static SimpleDateFormat yyyymmddFormat = new SimpleDateFormat(
			"yyyyMMdd");

	public static Date getDateyymmdd(String string) {
		Date date = new Date();
		try {

			date = dateFormat.parse(string);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return date;

	}

}
